<template>
  <div class="erha_card">
    <div class="card_head">
      <div class="card_head_title">
        <slot name="title"/>
      </div>
      <div class="card_tools">
        <slot name="tools"/>
      </div>
    </div>
    <div class="card_body">
      <slot name="body"/>
    </div>
  </div>
</template>

<script setup>

</script>

<style scoped lang="scss">
.erha_card {
  border-radius: 4px;
  background-color: #FFFFFF;

  .card_head {
    border-bottom: 1px solid #EBEEF5;
    height: 48px;
    display: flex;
    align-items: center;
    font-size: 16px;
    justify-content: space-between;
    padding: 0 10px 0 0;

    .card_head_title {
      padding: 10px 16px;
      flex: 1;
      color: var(--color-text-1);
      font-weight: 500;
      line-height: 1.5715;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }

    .card_tools {

    }
  }

  .card_head::before {
    content: '';
    width: 4px;
    height: 50%;
    background-color: #40ab65;
    position: relative;
    left: 0;
    border-radius: 0 4px 4px 0;
  }

}
</style>
